home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 October: Mac OS SDK / Dev.CD Oct 96 SDK / Dev.CD Oct 96 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODFDev / ODF / Found / FWNotifn / Include / FWNotifi.h < prev    next >
Encoding:
Text File  |  1996-08-16  |  2.3 KB  |  82 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                FWNotifi.h
  4. //    Release Version:    $ ODF 1 $
  5. //
  6. //    Copyright:    (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  7. //
  8. //========================================================================================
  9.  
  10. #ifndef FWNOTIFI_H
  11. #define FWNOTIFI_H
  12.  
  13. #ifndef FWSTDDEF_H
  14. #include "FWStdDef.h"
  15. #endif
  16.  
  17. #ifndef FWINTERE_H
  18. #include "FWIntere.h"
  19. #endif
  20.  
  21. //========================================================================================
  22. // Forward declarations
  23. //========================================================================================
  24.  
  25. class FW_CInterest;
  26. class FW_MNotifier;
  27.  
  28. //========================================================================================
  29. // CLASS FW_CNotification
  30. //========================================================================================
  31.  
  32. class FW_CNotification
  33. {
  34. public:
  35.     FW_DECLARE_CLASS
  36.  
  37.     FW_CNotification();
  38.     FW_CNotification(const FW_CInterest& interest);
  39.     FW_CNotification(const FW_CNotification& other);
  40.     virtual            ~FW_CNotification();
  41.     
  42.     FW_Boolean            operator==(const FW_CNotification& other);
  43.     FW_CNotification&    operator=(const FW_CNotification& other);
  44.  
  45.     FW_CInterest*        GetInterest() const;
  46.     void                SetInterest(const FW_CInterest& interest);
  47.     FW_Message            GetMessage() const;
  48.     FW_MNotifier*        GetNotifier() const;
  49.  
  50. private:
  51.     FW_CInterest*        fInterest;
  52. };
  53.  
  54. //----------------------------------------------------------------------------------------
  55. // FW_CNotification::GetInterest
  56. //----------------------------------------------------------------------------------------
  57.  
  58. inline FW_CInterest* FW_CNotification::GetInterest() const
  59. {
  60.     return fInterest;
  61. }
  62.  
  63. //----------------------------------------------------------------------------------------
  64. // FW_CNotification::GetMessage
  65. //----------------------------------------------------------------------------------------
  66.  
  67. inline FW_Message FW_CNotification::GetMessage() const
  68. {
  69.     return fInterest->GetMessage();
  70. }
  71.  
  72. //----------------------------------------------------------------------------------------
  73. // FW_CNotification::GetNotifier
  74. //----------------------------------------------------------------------------------------
  75.  
  76. inline FW_MNotifier* FW_CNotification::GetNotifier() const
  77. {
  78.     return fInterest->GetNotifier();
  79. }
  80.  
  81. #endif
  82.